export default defineNuxtConfig({
   modules: ['@pinia/nuxt', '@vueuse/nuxt', '@vant/nuxt', '@nuxt/image-edge'],
   runtimeConfig: {
      // Private keys are only available on the server
      apiSecret: '服务端专用',

      // Public keys that are exposed to the client
      public: {
         referer: process.env.NUXT_PUBLIC_DOMAIN,
         baseURL: process.env.NUXT_PUBLIC_API_BASE,
         appcode: process.env.NUXT_PUBLIC_APP_CODE,
      }
   },
   app: {
      head: {
         htmlAttrs: {
            lang: 'zh-CN',
         }
      },
      keepalive: false,
   },
   experimental: {
      externalVue: false,
   },
   css: [
      'element-plus/theme-chalk/dark/css-vars.css',
      'element-plus/dist/index.css',
      '~/assets/scss/common.scss',
      '~/assets/scss/element-plus.scss',
   ],
   plugins: [
   ],
   vite: {
      resolve: {
         dedupe: ['vue']
      }
   },
   // 打包配置
   nitro: {
      minify: true,
      sourceMap: false,
   },
})